Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Testing, Tooling] Expose integration app via gRPC/HTTP/WS #1017

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bryanchriswhite
Copy link
Contributor

Summary

This branch is currently a spike towards a PoC of wrapping an integration.App in gRPC/HTTP/WS servers such that (off-chain) clients can be used in app integration level tests.

Issue

These testutils are necessary in order to cover client usage at this testing level, which is preferred over higher levels for most kinds of tests.

The client caching work (#543) will depend on this for coverage over its usage of EventsReplayClient, once event-drive cache warming is implemented (eminent - #994). Otherwise, this coverage can only be expressed at the in-memory network or E2E levels, which we SHOULD NOT do.

Type of change

Select one or more from the following:

Testing

  • Documentation: make docusaurus_start; only needed if you make doc changes
  • Unit Tests: make go_develop_and_test
  • LocalNet E2E Tests: make test_e2e
  • DevNet E2E Tests: Add the devnet-test-e2e label to the PR.

Sanity Checklist

  • I have tested my changes using the available tooling
  • I have commented my code
  • I have performed a self-review of my own code; both comments & source code
  • I create and reference any new tickets, if applicable
  • I have left TODOs throughout the codebase, if applicable

@bryanchriswhite bryanchriswhite self-assigned this Dec 20, 2024
@bryanchriswhite bryanchriswhite added testing Test (or test utils) additions, fixes, improvements or other off-chain Off-chain business logic tooling Tooling - CLI, scripts, helpers, off-chain, etc... labels Dec 20, 2024
resp := rpctypes.RPCResponse{
JSONRPC: "2.0",
ID: req.ID,
// TODO_IN_THIS_COMMIT: generate a mock result...

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[linter-name (fail-on-found)] reported by reviewdog 🐶
// TODO_IN_THIS_COMMIT: generate a mock result...

}
}

// TODO_IN_THIS_COMMIT: also wrap RunMsgs...

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[linter-name (fail-on-found)] reported by reviewdog 🐶
// TODO_IN_THIS_COMMIT: also wrap RunMsgs...

}

// TODO_IN_THIS_COMMIT: also wrap RunMsgs...
// TODO_IN_THIS_COMMIT: godoc...

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[linter-name (fail-on-found)] reported by reviewdog 🐶
// TODO_IN_THIS_COMMIT: godoc...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
off-chain Off-chain business logic testing Test (or test utils) additions, fixes, improvements or other tooling Tooling - CLI, scripts, helpers, off-chain, etc...
Projects
Status: 🏗 In progress
Development

Successfully merging this pull request may close these issues.

1 participant